const creteType = () => {
    let type = [];
    for (let i = 0; i < 20; i++) {
        type.push({
            id: i + 1,
            name: `类型${i + 1}`,
            check: i == 0 ? true : false
        });
    }
    return type;
}

const createDataList = () => {
    let reList = creteType();
    reList.map(item => {
        item.list = [];
        for (let i = 0; i < 10; i++) {
            item.list.push({
                id: i + 1,
                name: `黑糖小芋圆奶茶${i + 1}`,
            });
        }
    });
    return reList;
}


module.exports = {
    creteType,
    createDataList
}